<html>
	<head>
		<meta charset="UTF-8">
		<title>设置项</title>
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/color.css">
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css">
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
		<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript">
			$(function(){
				
				$('#save').click(function(){
					var work1 = $('#work1').val().trim();
					var work2 = $('#work2').val().trim();
					data={
						work1:work1,
						work2:work2
					};
					$.ajax({
						url:'/setwork',
						data:data
					});
					var win = $.messager.progress({
						title:'请等待',
						msg:'上传参数...'
					});
					setTimeout(function(){
						$.messager.progress('close');
					},2800);
					
				});
			})
		</script>
	</head>
	<body>
		<a href="/userlist" class="easyui-linkbutton"  plain="true" onclick="newUser()">用户设置</a>
		<a href="/?pageSize=10&pageNo=1&processedFlag=1" class="easyui-linkbutton" class="easyui-linkbutton"  plain="true" onclick="newUser()">工单</a>
		<table id="dg" title="任务配置" class="easyui-datagrid" style="width:300px;height:120px"
            toolbar="#toolbar" pagination="false"
            rownumbers="true" fitColumns="true" singleSelect="true">
			<thead>
				<tr>
					<th field="workname" width="50">任务名</th>
					<th field="sheetTitle" width="50">处理间隔(s)</th>
			
				</tr>
				
			</thead>
			<tbody>
				<tr>
					<td>扫描任务</td>
					<td><input type='input'  value="{{work1}}" id="work1"/></td>
		
				</tr>
				<tr>
					<td>数据库扫描</td>
					<td><input type='input'  value="{{work2}}" id="work2"/></td>
				</tr>
			</tbody>
		</table>
		<a class="easyui-linkbutton" iconCls="icon-add" plain="true" id="save">保存</a>

	</body>
</html>